package br.com.virtual.base.uteis;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class VirtualUtil {

	public static String regex(String string, String padrao){
		
		Pattern pattern = Pattern.compile(padrao);
		Matcher matcher = pattern.matcher(string);
		
		if( matcher.find())
			return matcher.group();
		else
			return "";
	}
	
	
}
